
 /*
 * ProcessStep object constructor
 */

 	function ProcessStep(stepName, stepID, stepHref, product){
		this.stepName = stepName;
		this.stepID = stepID;
		this.stepHref  = stepHref;
		this.products = product;
	}

	/**
	** ProcessStep object methods starts here
	**
	**/
	ProcessStep.prototype.getName = function(){
		return this.stepName;
	}

	ProcessStep.prototype.getID = function(){
		return this.stepID;
	}
	
	ProcessStep.prototype.getHref = function(){
		return this.stepHref;
	}

	ProcessStep.prototype.addProduct = function(product){
		//this.products[this.count] = product;
		//this.count++;
	}

	ProcessStep.prototype.getProducts = function(){
		return this.products;
	}

	ProcessStep.prototype.getProductNames = function(){
		//var arrayLoc = new Array(this.products.length);
		//for(i=0; i<this.products.length; i++){
		//return = this.products.getName();
		//}
		//return arrayLoc;
	}

	ProcessStep.prototype.getProductIDs = function(){
		var arrayLoc = new Array(this.products.length);
		for(i=0; i<this.products.length; i++){
			arrayLoc[i] = this.products[i].getID();
		}
		return arrayLoc;
	}

	ProcessStep.prototype.getProductHrefs = function(){
		var arrayLoc = new Array(this.products.length);
		for(i=0; i<this.products.length; i++){
			arrayLoc[i] = this.products[i].getHref();
		}
		return arrayLoc;
	}

	ProcessStep.prototype.getLocations = function(procName){
		return this.products[procName].getLocations();
	}

	ProcessStep.prototype.getLocationNames = function(procName){
		return this.products[procName].getLocationNames();
	}

	ProcessStep.prototype.getLocationIDs = function(procName){
		return this.products[procName].getLocationIDs();
	}

	ProcessStep.prototype.getLocationHrefs = function(procName){
		return this.products[procName].getLocationHrefs();
	}

	ProcessStep.prototype.getLots = function(procName, locName){
		return this.products[procName].getLots(locName);
	}

	ProcessStep.prototype.getLotNames = function(procName, locName){
		return this.products[procName].getLotNames(locName);
	}

	ProcessStep.prototype.getLotIDs = function(procName, locName){
		return this.products[procName].getLotIDs(locName);
	}

	ProcessStep.prototype.getLotHrefs = function(procName, locName){
		return this.products[procName].getLotHrefs(locName);
	}
